package gptma.bo.model.application;

import gptma.bo.model.BaseEntity;

import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "versionApplication")
@AttributeOverride(name = "id", column = @Column(name = "versionApplicationId"))
public class ApplicationVersion extends BaseEntity {

	private static final long serialVersionUID = 3845273919983608985L;

	@Column(name = "numeroVersion")
	private String versionNumber;

	@Transient
	private Date releaseDate;

	/**
	 * @return the versionNumber
	 */
	public String getVersionNumber() {
		return versionNumber;
	}

	/**
	 * @param versionNumber
	 *            the versionNumber to set
	 */
	public void setVersionNumber(String versionNumber) {
		this.versionNumber = versionNumber;
	}

	/**
	 * @return the releaseDate
	 */
	public Date getReleaseDate() {
		return releaseDate;
	}

	/**
	 * @param releaseDate
	 *            the releaseDate to set
	 */
	public void setReleaseDate(Date releaseDate) {
		this.releaseDate = releaseDate;
	}

}
